package com.ruoyi.utils.constants;

/**
 * 文章查询相关的常量类
 */
public class ArticleConstants {

    public static  final Integer LOADTPYE_LOAD_MORE = 1;

    public static  final Integer LOADTPYE_LOAD_NEW = 2;

    public static  final String DEFAULT_TAG = "__all__";

    /**
     * BUG topic 名字不能太长
     */
    public static  final String ARTICLE_ES_SYNC_TOPIC = "article_es_sync";


    /**
     * 热点文章redis key前缀
     */
    public static final String HOT_ARTICLE_PAGE = "hot_article_page_";

    /**
     * 权重
     */
    public static  final  Integer HOT_ARTICLE_READ_WEIGHT = 1;
    public static  final  Integer HOT_ARTICLE_LIKES_WEIGHT = 3;
    public static  final  Integer HOT_ARTICLE_COMMENT_WEIGHT = 5;
    public static  final  Integer HOT_ARTICLE_COLLECTION_WEIGHT = 8;

}
